package com.hmall.mapper;

import com.hmall.model.SysUserSearch;
import com.hmall.util.MyMapper;
import com.hmall.vo.SearchVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface SysUserSearchMapper extends MyMapper<SysUserSearch> {
    SysUserSearch selectRepeat(@Param("query") String query, @Param("user_id") Integer user_id);

    void deleteByUserId(@Param("userId") Integer userId);

    int selectCountData(@Param("userId") Integer userId);

    List<Map<String,Object>> selectByPage(@Param("userId") Integer userId, @Param("pageStart") Integer pageStart, @Param("pageSize") int pageSize);

    List<SearchVo> selectHot();
}